/*
 * Copyright (c) 2010 CCX(China) Co.,Ltd. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * CCX(China) Co.,Ltd. ("Confidential Information").
 * It may not be copied or reproduced in any manner without the express 
 * written permission of CCX(China) Co.,Ltd.
 * 
 *	Created on 2010-12-29 下午02:08:29
 */
package cn.com.ccxe.core.crawl.filter;

import cn.com.ccxe.core.entity.Link;
import cn.com.ccxe.core.util.CodeUtil;

/**
 * 更新过滤器。
 * @author hetao
 */
public class UpdateFilter implements LinkFilter {

	/**
	 * 链接是否到了更新的时间。
	 * 如果是，返回true，反之为false。
	 */
	public boolean doFilter(Link link) {
		return (CodeUtil.getDate() - link.getFetchTime()) <= 0;
	}
}
